package game;

import java.awt.geom.Point2D;

public class Cursor extends GameObject {
	
	private static final long serialVersionUID = 1L;

	public Cursor (int index, Point2D position, Point2D dimension)
	{
		super(index, position, dimension);
	}
	
	public void update()
	{
		this.position = new Point2D.Double(Mouse.getInstance().getPositionMouse().getX() - this.getOrigin().getX(),
										   Mouse.getInstance().getPositionMouse().getY() - this.getOrigin().getX());
	}
}
